//
//  SinaAuthorizeView.h
//  MrWrite
//
//  Created by lilg on 13-7-25.
//  Copyright (c) 2013年 Founder. All rights reserved.
//

#import <UIKit/UIKit.h>
#define SCREENHEIGHT       [[UIDevice currentDevice] screenHeight]
#define SCREENWIDTH        [[UIDevice currentDevice] screenWidth]
#define NavagationBarHeight     44.0


@protocol SinaAuthorizeDelegate <NSObject>

-(void)sinaAuthorizeDelegateDidLogin:(NSDictionary *)dic;

-(void)sinaAuthorizeDelegateCancel;

@end

@interface SinaAuthorizeView : UIView<UIWebViewDelegate>
{
  NSString              *_appKey;
  NSString               *_appSecret;
  NSString               *_redirectURI;
}

@property (nonatomic, assign)id<SinaAuthorizeDelegate> delegate;

-(id)initWithFrame:(CGRect)frame andAppKey:(NSString *)appkey andAppSecret:(NSString *)appSecret andRedirectURI:(NSString *)redirectURI  delegate:(id<SinaAuthorizeDelegate>)sinaAuthorizeDelegate;

- (void)ShowWebView;

@end
